package star.oath.project.skill.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("skill_def")
public class SkillDef extends Model<SkillDef> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String skillCode;
    private String skillName;

    private Integer isPassive;
    public boolean isPassive() {
        return isPassive == 1;
    }

    private Integer maxTarget;

    private String attackType;
    private String damageType;
    private Integer diceNumber;
    private Integer diceSides;
    private Integer diceBonus;
    private Integer manaCost;
    private Integer diceNumberPlvl;
    private Integer diceSidesPlvl;
    private Integer diceBonusPlvl;
    private Integer manaCostPlvl;

    private String buffEffect;
    private Integer buffLength;
    private Integer buffProbability;
    private Integer buffLengthPlvl;
    private Integer buffProbabilityPlvl;
    @TableField(exist = false)
    private BuffDef buffInfo;

}
